<template>
  <img alt="Vue logo" src="./assets/logo.png">
  <MyComponent @OnEvent="GetdataHandle"/>
  <p>{{ message }}</p>
</template>

<script>
import MyComponent from './components/MyComponent.vue';

export default {
  name: 'App',
  data(){
    return {
      message:""
    }
  },
  components: {
    MyComponent
  },
  methods:{
    GetdataHandle(data){
      console.log(data);
      this.message = data;
      
    }
  }
}
</script>

<style>
#app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
  margin-top: 60px;
}
</style>
